﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Login.ascx.cs" Inherits="LayoutTemplate.WebUserControl.Login" %>
<style type="text/css">
    .style1
    {
        width: 39%;
    }
    .style2
    {
    }
    .style3
    {
    }
</style>
<asp:Panel ID="pnlLogin" runat="server">
    <table class="style1">
        <tr>
            <td colspan="2" style="background-color: #6699FF">
                Login</td>
        </tr>
        <tr>
            <td class="style3">
                Username</td>
            <td>
                <asp:TextBox ID="txtUsername" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style3">
                Password</td>
            <td>
                <asp:TextBox ID="txtPassword" runat="server" 
                TextMode="Password"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="center" class="style2" colspan="1">
                <asp:Button ID="btnLogin" runat="server" 
                onclick="btnLogin_Click" Text="Login" />
            </td>
            <td align="center" class="style2">
             
                <a href="../DangKy.aspx" type="text/asp" />
                <input type="button" value="SignUp" style="width:75px" />
            </td>
           
        </tr>
        <tr>
            <td align="center" class="style2" colspan="2">
                <asp:Label ID="lblError" runat="server" ForeColor="Red"></asp:Label>
            </td>
        </tr>
    </table>
</asp:Panel>
<asp:Panel ID="pnlLogout" runat="server" Visible="False">
    <table width="100%">
        <tr>
            <td style="background-color: #6699FF" >
                Hello
                <asp:Label ID="lblUser" runat="server" ForeColor="#FFFFCC"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style3">
                <asp:HyperLink NavigateUrl="~\ThongTinCaNhan.aspx" ID="Thongtin" runat="server">Thong tin ca nhan</asp:HyperLink></td>
        </tr>
        <tr>
            <td class="style3">
                <asp:HyperLink NavigateUrl="" ID="HyperLink1" runat="server">Chua co</asp:HyperLink></td>
        </tr>
        <tr>
            <td align="center" class="style2">
                <asp:Button ID="btnLogout" runat="server" 
                onclick="btnLogout_Click" Text="Logout" />
            </td>
        </tr>
    </table>
</asp:Panel>
<asp:Panel ID="pnlLogout2" runat="server" Visible="False">
    <table width="100%">
        <tr>
            <td style="background-color: #6699FF" >
                Hello Doanh Nghiệp
                <asp:Label ID="lbdn" runat="server" ForeColor="#FFFFCC"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style3">
                <asp:HyperLink NavigateUrl="~\DoanhNghiep_ThongTin.aspx" ID="HyperLink2" runat="server">Thông tin Doanh Nghiệp</asp:HyperLink></td>
        </tr>
        <tr>
            <td class="style3">
                <asp:HyperLink NavigateUrl="" ID="HyperLink3" runat="server">Chua co</asp:HyperLink></td>
        </tr>
        <tr>
            <td align="center" class="style2">
                <asp:Button ID="btlogoutDN" runat="server" 
                onclick="btnLogout_Click" Text="Logout" />
            </td>
        </tr>
    </table>
</asp:Panel>
<asp:Panel ID="pnlLogout3" runat="server" Visible="False">
    <table width="100%">
        <tr>
            <td style="background-color: #6699FF" >
                Hello Admin
                <asp:Label ID="lbadmin" runat="server" ForeColor="#FFFFCC"></asp:Label>
            </td>
        </tr>
        <tr>
            <td class="style3">
                <asp:HyperLink NavigateUrl="~\AdminThongTin.aspx" ID="HyperLink4" runat="server">Thông tin cá nhân</asp:HyperLink></td>
        </tr>
        <tr>
            <td class="style3">
                <asp:HyperLink NavigateUrl="" ID="HyperLink5" runat="server">Chua co</asp:HyperLink></td>
        </tr>
        <tr>
            <td align="center" class="style2">
                <asp:Button ID="btlogoutadmin" runat="server" 
                onclick="btnLogout_Click" Text="Logout" />
            </td>
        </tr>
    </table>
</asp:Panel>
